<template>
  <div class="header-container contentWidth">
    <div class="left">
      <div></div>
    </div>
    <div class="right">
      <div class="item" @click="dialogTableVisible = true">登录</div>
    </div>
  </div>

  <el-dialog :append-to-body="true" v-model="dialogTableVisible" width="35%">
    <Login />
  </el-dialog>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { ElDialog } from "element-plus";
import Login from "@/views/Login/index.vue";

const dialogTableVisible = ref(false);
</script>

<style lang="scss" scoped>
.contentWidth {
  width: 1280px;
  margin: 0 auto;
}

.header-container {
  display: flex;
  justify-content: space-between;

  .left {
    display: flex;
  }

  .item {
    cursor: pointer;
    padding: 0 8px;
    &:hover {
      box-shadow: 1px 0px 1px #151515, -1px 0px 1px #151515;
    }
  }
}
</style>
